home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / misc / xref_v1.1.lha / XRef / Tools / rexx / rexxxref.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-09  |  2.7 KB  |  124 lines

  1. /*
  2. ** $PROJECT: rexxxref.library
  3. **
  4. ** $VER: rexxxref.h 1.1 (08.01.95)
  5. **
  6. ** by
  7. **
  8. ** Stefan Ruppert , Windthorststraße 5 , 65439 Flörsheim , GERMANY
  9. **
  10. ** (C) Copyright 1995
  11. ** All Rights Reserved !
  12. **
  13. ** $HISTORY:
  14. **
  15. ** 08.01.95 : 001.001 : initial
  16. */
  17.  
  18. /* ------------------------------- includes ------------------------------- */
  19.  
  20. #include <dos/dos.h>
  21. #include <dos/dosextens.h>
  22. #include <exec/types.h>
  23. #include <exec/ports.h>
  24. #include <exec/memory.h>
  25. #include <exec/lists.h>
  26. #include <exec/execbase.h>
  27. #include <clib/alib_protos.h>
  28. #include <clib/alib_stdio_protos.h>
  29. #include <string.h>
  30. #include <dos.h>
  31. #include <libraries/xref.h>
  32.  
  33. #include <rexx/rexxio.h>
  34. #include <rexx/rxslib.h>
  35. #include <rexx/errors.h>
  36.  
  37. #include <clib/macros.h>
  38. #include <clib/dos_protos.h>
  39. #include <clib/exec_protos.h>
  40. #include <clib/intuition_protos.h>
  41. #include <clib/utility_protos.h>
  42. #include <clib/xref_protos.h>
  43. #include <clib/rexxsyslib_protos.h>
  44.  
  45. #include <pragmas/dos_pragmas.h>
  46. #include <pragmas/exec_pragmas.h>
  47. #include <pragmas/intuition_pragmas.h>
  48. #include <pragmas/utility_pragmas.h>
  49. #include <pragmas/xref_pragmas.h>
  50. #include <pragmas/rexxsyslib_pragmas.h>
  51.  
  52. /* --------------------------- include my stuff --------------------------- */
  53.  
  54. #include <register.h>
  55. #include <debug.h>
  56.  
  57. #define ClassCall    LibCall
  58.  
  59. #include "protos.h"
  60.  
  61. /* ------------------------- RexxXRefBase structure -------------------------- */
  62.  
  63. struct RexxXRefBase
  64. {
  65.     struct Library               rxb_Lib;
  66.     struct Library              *rxb_SysBase;
  67.     struct Library              *rxb_DOSBase;
  68.     struct Library              *rxb_IntuitionBase;
  69.     struct Library              *rxb_UtilityBase;
  70.     struct Library              *rxb_XRefBase;
  71.     struct Library              *rxb_RexxSysBase;
  72.     BPTR                         rxb_SegList;
  73. };
  74.  
  75. /* ---------------------------- library bases ----------------------------- */
  76.  
  77. #define SysBase                 rxb->rxb_SysBase
  78. #define DOSBase                 rxb->rxb_DOSBase
  79. #define UtilityBase             rxb->rxb_UtilityBase
  80. #define IntuitionBase           rxb->rxb_IntuitionBase
  81. #define XRefBase                rxb->rxb_XRefBase
  82. #define RexxSysBase             rxb->rxb_RexxSysBase
  83.  
  84. /* ------------------------ rexx function define's ------------------------ */
  85.  
  86. #define RXERR_NO_FREE_STORE         ERR10_003
  87. #define RXERR_REQUIRED_ARG_MISSING  ERR10_017
  88.  
  89. enum
  90. {
  91.    FX_FUNCTIONNAME,
  92.    FX_STRING,
  93.    FX_CATEGORY,
  94.    FX_LIMIT,
  95.    FX_NOPATTERN,
  96.    FX_NOCASE,
  97.    FX_STEM
  98. };
  99.  
  100. #define FX_MAX    FX_STEM
  101.  
  102. enum
  103. {
  104.    LX_FUNCTIONNAME,
  105.    LX_FILE,
  106.    LX_XREFPRI,
  107.    LX_LOCK,
  108.    LX_INDEX
  109. };
  110.  
  111. #define LX_MAX    LX_INDEX
  112.  
  113. enum
  114. {
  115.    EX_FUNCTIONNAME,
  116.    EX_CATEGORY,
  117.    EX_FILE,
  118.    EX_FORCE
  119. };
  120.  
  121. #define EX_MAX    EX_FORCE
  122.  
  123.  
  124.